@extends('admin.main')

@section('content')
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <h5>用户</h5>
        </div>
        <div class="ibox-content">
            <div class="table-responsive">
                <table id="tblDataList" class="table table-striped table-bordered">
                    <thead>
                        <tr>
                            <th>昵称</th>
                            <th>性别</th>
                            <th>用户所在国家</th>
                            <th>用户所在省份</th>
                            <th>用户所在城市</th>
                            <th>头像</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach($rows as $row)
                        <tr data-id="{{$row->id}}">
                            <td>{{$row->nickname}}</td>
                            <td>
                                {{($row->sex == 1)? '男' : '女'}}
                            </td>
                            <td>
                                {{$row->country}}
                            </td>
                            <td>{{$row->province}}</td>
                            <td>{{$row->city}}</td>
                            <td><img src="{{$row->headimgurl}}" width="50" height="50"></td>
                        </tr>
                        @endforeach
                    </tbody>
                </table>
                <div class="text-center"><?php echo $rows->render(); ?></div>
            </div>
        </div>
    </div>
</div>


@endsection

@section('pagescript')
<script>
    $("#side-menu li[rel='user']").addClass("active");

</script>
@endsection
